package picture;

public class Circle extends Shape {
	private double r;
	private final double pi = 3.14;

	public Circle(String s, double r) {
		super(s);
		this.r = r;
	}

	// public void show()
	@Override
	public void show() {
		super.show();
		System.out.println("他的半径是" + r);
	}

	@Override
	public double calcArea() {
		return r * r * pi;
	}

	@Override
	public double calcPremter() {
		return 2 * pi * r;
	}
}
